import fetch from 'utils/fetch';
/**
 * 家长管理
 */
//获取家长管理列表
export function queryList(curPage, pageSize, schoolId, parentName, exueId, phone) {
    const data = {
        schoolId,
        parentName,
        exueId,
        phone
    };
    return fetch({
        url: '/parent/queryList/' + curPage + '/' + pageSize,
        method: 'post',
        data
    });
}
//查询登录用户下的所有学校
export function getSchoolsInfo() {
    const data = {

    };
    return fetch({
        url: 'parent/getSchools',
        method: 'post',
        data
    });
}

//查看家长信息
export function viewParentInfo(schoolId,parentId,userId) {
  const data = {
    schoolId,
    userId,
    parentId
  };
  return fetch({
      url: 'parent/viewParentInfo',
      method: 'post',
      data
  });
}
//删除家长
export function deleteParents(useId, parentId) {
    const data = {
        useId,
        parentId
    };
    return fetch({
        url: 'parent/deleteParents',
        method: 'post',
        data
    });
}
//初始化密码
export function initPwd(userId) {
    const data = {

    };
    return fetch({
        url: 'parent/initPwd/'+userId,
        method: 'post',
        data
    });
}